<?php

namespace app\enum;

class UserCode
{

    /**
     * @var int 正常状态
     */
    public const STATUS_NORMAL = 1;

    /**
     * @var int 被封禁
     */
    public const STATUS_DISABLE = 2;


    // 平台枚举
    public const PLATFORM = [
        '测试' => 0,
        '微信' => 1,
        '抖音' => 2
    ];

    //挪车码状态 状态 0未生成  1待使用  2使用中  3已禁用
    public const QRCODE_STATUS = [
        '未生成' => 0,
        '待使用' => 1,
        '使用中' => 2,
        '已禁用' => 3
    ];

    //data:1:待入账,2:待提现,3:提现成功,4:提现失败,5=订单关闭
    public const REWARD_STATUS = [
        '待入账' => 1,
        '待提现' => 2,
        '提现成功' => 3,
        '提现失败' => 4,
        '订单关闭' => 5
    ];

    //订单状态 data:10:已支付待发货,20:已发货待收货,30:已收货待入账,40:已入账待提现,50:客户订单已取消,60:售后已退款
    public const ORDER_STATUS = [
        '已支付待发货' => 10,
        '已发货待收货' => 20,
        '已收货待入账' => 30,
        '已入账待提现' => 40,
        '已提现' => 40,
        '客户订单已取消' => 50,
        '售后已退款' => 60,
    ];

    //data:1:正式码,2:临时码,3:推广码,4:微信分享
    public const SCAN_TYPE = [
        '正式码' => 1,
        '临时码' => 2,
        '推广码' => 3,
        '微信分享' => 4
    ];


}